package com.example.cognitivesystemserver.service;

import com.example.cognitivesystemserver.Model.UserModel;
import com.example.cognitivesystemserver.pojo.Login;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.List;

public interface LoginService {
    public UserModel register(String name, String userId, String userPwd, String role);
    public UserModel login(String userId, String userPwd, String role);
    public void updatePassWord(String userId,String oldPwd,String newPwd,String repeatPwd);
    public List<Login> selectByUserId(String userId);

    /**
     * description: 获取token
     * @param: Login
     * return: String
     */
    String getToken(Login login, long time);
}
